﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Practice_seven
{
    public partial class Homework07 : Form
    {
        public Homework07()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //获取文本值
            string name = this.txt_name.Text;
            int age = Convert.ToInt32(this.txt_age.Text);
            string blood = this.txt_blood.Text;
            if (rbtn_01.Checked) 
            {
                MessageBox.Show($"我的姓名为:{name},性别为:{rbtn_01.Text},年龄:{age},血型为:{blood}");
            }
            else
            {
                MessageBox.Show($"我的姓名为:{name},性别为:{rbtn_02.Text},年龄:{age},血型为:{blood}");
            }
        }
    }
}
